package buaa.qel.rpc.common.protocol;

import io.netty.handler.codec.LengthFieldBasedFrameDecoder;

/**
 * 处理粘包半包问题的帧解码器，在协议确定后，此解码器的构造参数也随之确定
 */
public class RpcProtocolFrameDecoder extends LengthFieldBasedFrameDecoder {
    public RpcProtocolFrameDecoder(){
        this(65536,10,4,0,0);
    }

    public RpcProtocolFrameDecoder(int maxFrameLength, int lengthFieldOffset, int lengthFieldLength, int lengthAdjustment, int initialBytesToStrip) {
        super(maxFrameLength, lengthFieldOffset, lengthFieldLength, lengthAdjustment, initialBytesToStrip);
    }
}